/*
 * Erstellt mit SharpDevelop.
 * Benutzer: inffbr
 * Datum: 21.10.2009
 * Zeit: 13:21
 * 
 *
 */
using System;
using System.Drawing;
using System.Windows.Forms;

namespace XtraZonePlugin
{
	/// <summary>
	/// Description of frmTokenHandler.
	/// </summary>
    public partial class frmChaptchaHandler : Form
	{
		public string CaptchaString{get; private set;}
        public string TokenID { get; private set; }
		
		public frmChaptchaHandler(string tokenid, string captchaimage)
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
            pbCaptcha.ImageLocation = captchaimage;
            CaptchaString = "";
            TokenID = tokenid;
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
		
		void BtnLoginClick(object sender, EventArgs e)
		{
            CaptchaString = this.tbCaptcha.Text;
            this.DialogResult = DialogResult.OK;
            this.Close();
		}

        private void pbHelp_Click(object sender, EventArgs e)
        {
            tHelp.Show(tHelp.GetToolTip(pbHelp), this);
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
	}
}
